#读取手持物品的generic_item_cd来设置右键间隔，通过if此函数调用,在冷却时返回fail,不在冷却返回1
execute if score @s util.generic_item_cd matches -2147483648..2147483647 run return fail
execute unless data entity @s SelectedItem.components."minecraft:custom_data".generic_item_cd run return run tellraw @a {"text": "你的手持物品没有通用CD，请为其custom_data添加\"generic_item_cd\"，类型为INT，单位为Tick","color": "yellow"}
execute store result score @s util.generic_item_cd run data get entity @s SelectedItem.components."minecraft:custom_data".generic_item_cd
return 1